package com.sc.springboot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author romeo
 * @since 2025-09-20 03:02:20
 */
@Getter
@Setter
@TableName("comment")
public class Comment {

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @TableField("post_id")
    private Integer postId;

    @TableField("user_id")
    private Integer userId;

    /**
     * 被评论用户ID
     */
    @TableField("up_user_id")
    private Integer upUserId;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 评论时间
     */
    @TableField("comment_time")
    private Date commentTime;

    /**
     * 点赞数
     */
    @TableField("likes")
    private Integer likes;

    //不存在的字段
    @TableField(exist = false)
    private Users users;

}
